/**
 * desc: .
 * User : hjt
 * Date : 2017/1/2
 */
var fs = require("fs");
exports.writeFile = function(filename,data){
    return new Promise(function(resolve,reject){
        fs.writeFile(filename,data,"utf-8",function(err){
            if(err){
                reject(err);
                return;
            }
            resolve();
        });
    });
};